# -*- encoding: ISO-8859-1 -*- 

class Vue():
    def __init__(self,p):
        self.p=p 
        self.coups={"1":[-1,1],
                    "4":[-1,0],
                    "7":[-1,-1],
                    "8":[0,-1],
                    "9":[1,-1],
                    "6":[1,0],
                    "3":[1,1],
                    "2":[0,1],
                    "5":[0,0],
                    "t":"t",
                    "z":"z",
                    "a":"a"}   
        
    def montreJeu(self):
        ligne=[]
        for i in range(self.p.hauteur):
            ligne.append(" ")
        tab=[]
        for i in range(self.p.largeur):
            tab.append(ligne[:])
        print(self.p.doc.pos)
        tab[self.p.doc.x][self.p.doc.y]="M"
        for i in self.p.daleks:
            print(i.pos)
            tab[i.x][i.y]="D"
        for i in self.p.ferrailles:
            tab[i.x][i.y]="H"
            

        for i in tab:
            print(i)
        print()
        print("*******************************************************")
        print()
        
    def demandeCoup(self,points,zap):
        print("Pointage:",points," Zappeurs: ",zap)
        x=input("Votre tour:")
        return self.coups[x]

        
if __name__ == '__main__':
    c=Vue()